package com.yict.csms.system.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 汇率设置表Entity
 * @author ryan.wang
 *
 */
@Entity
@Table(name = "CSMS_OPTION")
public class Option {
	
	@Id
	@Column(name = "OPTIONID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "csms_option_seq")
	@SequenceGenerator(name = "csms_option_seq", sequenceName = "SEQ_CSMS_OPTION", allocationSize = 1, initialValue = 1)
	private Long optionId;
	
	@ManyToOne
	@JoinColumn(name = "OPERATE")
	private DataDict operate;
	
	@ManyToOne
	@JoinColumn(name = "wharf")
	private Wharf wharf;
	
	@Column(name = "DEFAULTVALUE")
	private Float defaultValue;
	
	@Column(name = "CREATEDATE")
	private Date createDate;

	@Column(name = "UPDATEDATE")
	private Date updateDate;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CREATEPERSON")
	private User createPerson;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "UPDATEPERSON")
	private User updatePerson;

	public Long getOptionId() {
		return optionId;
	}

	public void setOptionId(Long optionId) {
		this.optionId = optionId;
	}

	public DataDict getOperate() {
		return operate;
	}

	public void setOperate(DataDict operate) {
		this.operate = operate;
	}

	public Float getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(Float defaultValue) {
		this.defaultValue = defaultValue;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public User getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(User createPerson) {
		this.createPerson = createPerson;
	}

	public User getUpdatePerson() {
		return updatePerson;
	}

	public void setUpdatePerson(User updatePerson) {
		this.updatePerson = updatePerson;
	}

	public Wharf getWharf() {
		return wharf;
	}

	public void setWharf(Wharf wharf) {
		this.wharf = wharf;
	}

}
